import u from "../utils";
import { PATHTEMPLATE } from "../constants";

const _api = u.api(PATHTEMPLATE);

export const left = () => _api('left');
export const splitKey = params => _api('splitKey', { data: params });
export const save = params => _api('save', { data: params, type: 'post' });
export const template = id => _api('template', { data: { id } });
export const deleteTemplate = ids => _api('delete', { data: { ids } });